package com.smartstate.dataManagement.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "设备属性DTO")
public class DeviceAttributeDTO {

    @ApiModelProperty(value = "设备名称")
    private String name;

    @ApiModelProperty(value = "设备类型")
    private Integer type;

    @ApiModelProperty(value = "设备编码")
    private String deviceId;

    @ApiModelProperty(value = "组织机构")
    private String organization;

    @ApiModelProperty(value = "成本中心")
    private String costOf;

    @ApiModelProperty(value = "空间管理")
    private String space;

    /**
     * 属性值参数
     */
    @ApiModelProperty(value = "属性值参数")
    private List<AddressData> attributeList;








    @Data
    @ApiModel(value = "属性值参数", description = "属性值参数")
    public static class AddressData {
        @ApiModelProperty(value = "属性名")
        private String attributeName;
        @ApiModelProperty(value = "属性名")
        private String DataId;
        @ApiModelProperty(value = "是否做差值 0：做，1：不做")
        private String isDifference;
        @ApiModelProperty(value = "属性别名")
        private String attributeAlias;
        @ApiModelProperty(value = "后处理")
        private String postProcessing;
        @ApiModelProperty(value = "是否启用禁用该属性")
        private Boolean enabled;
    }

}
